<?php
	$product_id = $params[0];
	if($_SERVER["REQUEST_METHOD"]=='POST') {
		$sql = "UPDATE `tbl_product` SET `onsale` = '1'  WHERE `product_id` = $product_id LIMIT 1;";
		mysql_query($sql);
		echo '';
	}
	exit;
?>